package com.gosophia.metadataEngine.action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.gosophia.metadataEngine.dto.DataSourceInfoDto;
import com.gosophia.metadataEngine.ws.MetadataEngineWebService;

/**
 * 检查数据源填写是否真确
 * @author wangxinbing
 * @since 2011-05-09
 */
@Controller("CheckDataSourceInfoAction")
@Scope("prototype")
public class CheckDataSourceInfoAction {
	@Autowired
	private MetadataEngineWebService metadataEngineWebService;
	
	private DataSourceInfoDto dataSourceInfoDto;
	
	private boolean isSuccess;
	
	public String execute(){
		isSuccess = metadataEngineWebService.checkDataSourceInfo(dataSourceInfoDto);
		return "success";
	}
	public boolean getIsSuccess() {
		return isSuccess;
	}
	public void setIsSuccess(boolean isSuccess) {
		this.isSuccess = isSuccess;
	}
	public DataSourceInfoDto getDataSourceInfoDto() {
		return dataSourceInfoDto;
	}
	public void setDataSourceInfoDto(DataSourceInfoDto dataSourceInfoDto) {
		this.dataSourceInfoDto = dataSourceInfoDto;
	}
	
	
}
